    <div class="content">
        <div class="discus">
           <h2><?php echo lang('search.result');?></h2>
           <?php 
            if($num>0){
                foreach($list_search as $item){
                    $link = '';
                    $src_image='';
                    if($item->type=='PLACE'){
                        $link=site_url('city/placevisit_detail/'.$item->city_code.'/'.$item->title_alias.'/'.$item->id);
                        $src_image = base_url().'uploads/images/placevisit/small/'.$item->image;
                    }else if($item->type=="RELAX"){
                        $link=site_url('city/service_detail/'.$item->city_code.'/cuisine/'.$item->title_alias.'/'.$item->id);
                        $src_image = base_url().'uploads/images/relaxservice/small/'.$item->image;
						
						
                    }
                    
            ?>
                <div class="listDiscus">
                        <a href="<?php echo $link;?>" title="<?php echo $item->title?>">
                            <img src="<?php echo $src_image;?>" alt="<?php echo $item->title?>" width="145" height="98" />
                        </a>
                        <h3><a href="<?php echo $link;?>" title="<?php echo $item->title?>"><?php echo $item->title?></a></h3> 
                        <p><span class="travel_date_new"><?php echo $this->string_library->format_date($item->dt_create,'H:i - d/m/Y');?></span></p>
                        <p><?php echo $item->description?></p>
                        <p class="share_travel">
                            <a href="http://www.facebook.com/share.php?u=<?php echo $link;?>" title="<?php echo lang('menu.share')?>">
                                <img src="<?php echo base_url();?>templates/images/face_share.png" width="59" height="18"  alt="<?php echo lang('menu.share')?>"></a>
                               <a href="javascript:;" onClick="update_like('<?php echo $item->type?>','<?php echo $item->id?>');" title="<?php echo lang('menu.like')?> "> 
                                
                                <img src="<?php echo base_url();?>/templates/images/face_like.png" width="47" height="18"  alt="<?php echo lang('menu.like')?>">
                            </a> 
                            <a href="javascript:;" onClick="update_like('<?php echo $item->type?>','<?php echo $item->id?>');" class="like_text"><strong id="count_like_<?php echo $item->id?>"><?php echo $item->like;?></strong> <?php echo lang('menu.people')?> <span> <?php echo lang('menu.like')?> </span></a>  
                        </p>
                </div>
           <?php 
                }
            }else{
                echo '<h4>'.lang('anw.result_not_found').'</h4>';
            }
           ?>
        </div>      
        <div class="paging"> 
            <?php echo $pagination;?>
        </div>

    </div>
    <div class="right">
    	<div class="box_weather_search">
        <div class="weather" id="weather">
            <div class="cbo_weather"></div>
        </div>
        <script type="text/javascript">
            $(document).ready(function(){
                //Load default
                $('#weather').html('');
                anwajax.load('<?php echo base_url('weather/get_weather/HCM');?>','#weather');
                //Get data when combox's changed'
                $("#city").live('change', function(){
                    var city=$(this).val();
                    $('#weather').html('');
                    anwajax.load('<?php echo base_url('weather/get_weather');?>/'+city,'#weather');
                });
            });
        </script>
        <div class="search_all">
            <form id="frm_search_all" name="frm_search_all" action="<?php echo site_url('search/search_all/');?>" method="post">
                <input type="text" value="" name="keyword_search_all" id="keyword_search_all">
                <input type="button" id="btn_search_all" name="btn_search_all" value="<?php echo lang('anw.search');?>" class="bnt_search" onclick="anw.search_all();" >
            </form>
        </div>
    </div>
       
        <div class="box_ads"> 
            <a href="#" title="ads"><img src="<?php echo base_url();?>uploads/images/ads_banner.jpg" width="302" height="250"></a> 
        </div>
        <div class="topic_discus" id="topic_discus" >
		 
        </div>
        <div class="discus_member">
            <h2> <?php echo lang('anw.member');?></h2>
            <ul>
                <?php if($memberNewItems){
                    foreach($memberNewItems as $memberNewItem){
                ?>
                <li><a href="" title=""><img src="<?php echo base_url();?>uploads/images/member1.png" width="52" height="52" alt=""></a>
                <p align="center"><a href="" title=""><?php echo $memberNewItem->lb_user_login?></a></p>
                </li>
                <?php } 
                }  
                ?>
            </ul>

        </div>
        <!--Begin box quick search-->
        <div id="box_search_quick" class="box_search_quick">
        </div>
        <!--End box quick search-->
            
</div>
<script type="text/javascript">
			function update_like(search_type,search_id)
				{
					$(document).ready(function(){
						$.ajax({
						   type : 'POST',
						   url : "<?php echo base_url()?>search/update_like/"+ search_type + "/" + search_id,
						   data: {search_type:search_type,search_id:search_id},
						   type:"ajax",
						   dataType: "html",
						   success : function(data){
							 $("#count_like_" + search_id).html(data);
							}
						   
						 })
					   
					});
				}
		 </script>
<script type="text/javascript">
    $(document).ready(function(){
        anwajax.load('<?php echo site_url('search/load_search_fast');?>','#box_search_quick');
		anwajax.load('<?php echo site_url('discuss_right/load_discuss_right/');?>','#topic_discus');
	});
	 var current_page = "Search result";
</script>